package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AlbumUpdateInfoParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "相册名称不能为空")
    @ApiModelProperty(value = "相册名称", required = true, example = "可乐的相册")
    private String name;

    @NotNull(message = "相册简介不能为空")
    @ApiModelProperty(value = "相册简介", required = true, example = "可乐的相册简介")
    private String description;

    @NotNull(message = "必须提交排序序号")
    @Range(max = 99, message = "排序序号值必须0~99之间")
    @ApiModelProperty(value = "相册排序,必须是0~255之间的数字", required = true, example = "97")
    private Integer sort;

}
